package com.dekun.workhard.common.enums;

/**
 * 返回枚举
 *
 * @author zhoulg
 */
public enum  ResultEnum {
    /**
     * 成功
     */
    SUCCESS(200,"成功!"),
    /**
     * 失败
     */
    FAIL(400,"失败!"),
    /**
     * 接口不存在
     */
    NOT_FOUND(404,"接口不存在!"),
    /**
     * 服务器内部错误
     */
    INTERNAL_SERVER_ERROR(500,"服务器内部错误!"),

    /**
     *
     * 空指针异常
     */
    NULL_POINT_EXCEPTION(500,"空指针异常!")
    ;




    public int code;
    public String msg;

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}